# 写入文件
# import time
#
# f = open("test/test.txt", "w",encoding="UTF-8")
# # write写入
# f.write("hello python!")
# # flush刷新， 将数据从内存写入到硬盘
# f.flush()
# f.close()  # close方法，内置了flush的功能的

# f = open("test/test.txt","a",encoding="utf-8")
# f.write("我要玩永杰物件")
# f.flush()
# f.close()
